package com.demo.springBoot2.mapper;

import com.demo.springBoot2.entity.ChatMessages;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 聊天消息 Mapper 接口
 * </p>
 *
 * @author wuHua·pl
 * @since 2024-03-27
 */
@Mapper
public interface ChatMessagesMapper extends BaseMapper<ChatMessages> {
//    @Select("select * from chat_messages where friend_id = #{friendId} and user_id = #{userId} and group_id = #{groupId} and flag = #{flag}")
    List<ChatMessages> selectContent(ChatMessages chatMessages);
}
